Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


USBToHostWord

The USBToHostWord function changes the byte order of a value from little endian to big endian.

UInt16 USBToHostWord(UInt16 value)

If you need to embed a 16-bit USB constant in your code, you can use this macro:

USB_CONSTANT16(x)
x
The USB constant

This macro is only useful for the C or C++ programming languages.


© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames